PROGRAM = gtkplayer
PROGRAM_FILES = gtkplayer.cpp

CFLAGS	+= -g $(shell pkg-config --cflags gstreamer-0.10 gtk+-2.0)
LDFLAGS	+= -g
LIBS 	+= $(shell pkg-config --libs gstreamer-0.10 gtk+-2.0) 

all: $(PROGRAM)

%: %.c 
	$(cc) $(PROGRAM_FILES) $(CFLAGS) $(LDFLAGS) -o $(PROGRAM) $(LIBS)

clean:
	@rm -rf $(PROGRAM)

